#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#if 0
int main()
{
	int arr[] = { 1,2,3,4,5,6,7,8,9,10 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	int* p = &arr[0];
	for (int i = 0;i < sz;i++)
	{
		printf("%d ", *(p + i));
	}
	return 0;
}
#endif

#include<assert.h>
#include<string.h>
size_t my_strlen(const char* str)
{
	assert(str != NULL);
	size_t count = 0;
	while (*str != '\0')
	{
		count++;
		str++;
	}
	return count;
}
int main()
{
	char ch[] = "abcdef";
	size_t len = my_strlen(ch);
	printf("%zd\n", len);
	return 0;
}